package com.szxy.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: zwz
 * @Date:2020/7/16 0:12
 * @Description:com.szxy.service.feign
 * @Version:1.0
 **/
@FeignClient("order-service")
public interface OrderServiceFeign {

    /**
     * {userId}/{productId}/{count}
     * @return
     */
    @GetMapping("addOrder/{userId}/{productId}/{count}")
    ResponseEntity<Void> create(
            @PathVariable("userId") String userId,
            @PathVariable("productId") String productId,
            @PathVariable("count") int count);

}
